<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setCharacterEncoding("UTF-8");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'emp_add.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" type="text/css" href="css/emp_add.css">

</head>
<body>
<sql:query var="result"
				sql="select emp_num,emp_name,emp_job,emp_dept,emp_wage_base from t_department where emp_id=?">
				<sql:param value="${param.emp_id}" />
			</sql:query>
	<h3>员工工作信息修改</h3>
	<div id="container">
		<form id="fm-form" method="post"
			action="admin/emp_update_workinfo.jsp">
			<c:forEach var="row" items="${result.rows}">
				<fieldset>
					<legend>个人信息</legend>
					<div class="fm-req">
						<label for="fm-firstname">员工姓名</label> ${employee.emp_name}
					</div>
					<div class="fm-req">
						<label for="fm-firstname">员工编号</label> <input name="emp_num"
							id="fm-firstname" value="${emp_num}"
							type="text" />
					</div>


				</fieldset>
				<fieldset>
					<legend>工作信息</legend>
					<div class="fm-req">
						<label for="fm-firstname">部门</label> <input
							value="${emp_dept}" 
							name="emp_dept" id="fm-firstname" type="text">
					</div>
					<div class="fm-req">
						<label for="fm-firstname">职务</label> <input
							value="${emp_job}" 
							name="emp_job" id="fm-firstname" type="text">
					</div>
				</fieldset>
				<fieldset>
					<legend>工资信息</legend>
					<div class="fm-req">
						<label for="fm-firstname">基本工资</label> <input
							value="${emp_wage_base}" 
							name="emp_wage_base" id="fm-firstname" type="text">
					</div>
					<div class="fm-req">
						<label for="fm-firstname">三险一金</label> <input
							value="${emp_sxyj}" 
							name="emp_sxyj" id="fm-firstname" type="text">
					</div>
				</fieldset>
			</c:forEach>
			<div id="fm-submit" class="fm-req">
				<input name="Submit" value="&#25552; &#20132;" type="submit">
			</div>
			<br>
		</form>
		<%--<form id="fm-form" method="post"
			action="employeeAction!updateEmployee.action">
			<fieldset>
				<legend>个人信息</legend>
				<div class="fm-req">
					<label for="fm-firstname">员工姓名</label> ${employee.emp_name}
				</div>
				<div class="fm-req">
					<label for="fm-firstname">员工编号</label> 
						<input name="emp_num" id="fm-firstname" value='<s:property value="employee.emp_num" />' type="text" />
				</div>
				
				
			</fieldset>
			<fieldset>
				<legend>工作信息</legend>
				<div class="fm-req">
					<label for="fm-firstname">部门</label> <input
						value='<s:property value="employee.emp_dept_id"/>' name="employee.emp_dept_id" id="fm-firstname" type="text">
				</div>
				<div class="fm-req">
					<label for="fm-firstname">职务</label> <input
						value='<s:property value="employee.emp_job_id"/>' name="employee.emp_job_id" id="fm-firstname" type="text">
				</div>
			</fieldset>
			<fieldset>
				<legend>工资信息</legend>
				<div class="fm-req">
					<label for="fm-firstname">基本工资</label> <input
						value='<s:property value="employee.emp_wage_base"/>' name="employee.emp_wage_base" id="fm-firstname" type="text">
				</div>
				<div class="fm-req">
					<label for="fm-firstname">三险一金</label> <input
						value='<s:property value="employee.emp_sxyj"/>' name="employee.emp_sxyj" id="fm-firstname" type="text">
				</div>
			</fieldset>
			<div id="fm-submit" class="fm-req">
				<input name="Submit" value="&#25552; &#20132;" type="submit">
			</div>
			<br>
		</form>
	--%>
	</div>
</body>
</html>
